def findSmallest(arr):
    smallest = arr[0]
    smallest_index = 0;
    for i in range(1, len(arr)):
        if arr[i] < smallest:
            smallest = arr[i]
            smallest_index = i
    return smallest_index

def selectionSearch(arr):
    result_arr = []
    for i in range(0, len(arr)):
        result_arr.append(arr.pop(findSmallest(arr)))
    return result_arr

arr_target = [13,4,34,333,54,25,42,653,6,537,64,7456,8,758,7,986,4324,43,4231,4312,4,2314,32,543,26,54,7564,786,58,769,78,9]
print(selectionSearch(arr_target))
